using System;
using System.Collections.Generic;

namespace DataAccess.Entities
{
    public class Discussion
    {
        public virtual int Id { get; private set; }
        public virtual string Title { get; set; }
        public virtual string Description { get; set; }
        public virtual Account Owner { get; set; }
        public virtual DateTime DateCreated { get; set; }
        public virtual IList<Interest> Categories { get; set; }
        public virtual IList<Comment> Comments { get; set; }

        public Discussion()
        {
            Categories = new List<Interest>();
            Comments = new List<Comment>();
        }

        public virtual void AddCategory(Interest category)
        {
            Categories.Add(category);
        }

        public virtual void AddComment(Comment comment)
        {
            Comments.Add(comment);
        }
    }
}